import React from "react";
import Popover from "../../Popover";
import List from "./List";
import Button from "../../Button";
import PropTypes from 'prop-types';

export default function Upload(props) {
    return (
        <Popover style={ props.style }
                 className={ props.className }
                 readerLabel={ () => ( <Button color={'blue'} icon={'icon-upload'} >上传</Button> ) }
                 renderPopoverBox={ () => (<List />) }
        />
    )
}

Upload.propTypes = {
    style: PropTypes.object,
    className: PropTypes.string
}

Upload.defaultProps = {
    style: {},
    className: ''
}